package com.example.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class ArticlePageDTO {
    private Long current;
    private Long size;
    private String searchTitle;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;
    
    // 添加categoryId字段，用于按分类筛选文章
    private Integer categoryId;
    
    // 添加tagId字段，用于按标签筛选文章
    private Integer tagId;

    private Integer userId;
}
